package com.czc.service;

import org.springframework.stereotype.Component;

@Component
public class FallbackPaymentService implements HystrixPaymentService{
    //测试宕机情况下。把8001关闭。连访问Ok也会失败跳转到这个方法
    @Override
    public String paymentInfo_OK(Integer id) {
        return "FallbackPaymentService---paymentInfo_OK失败";
    }

    @Override
    public String paymentInfo_ERROR(Integer id) {
        return "FallbackPaymentService---paymentInfo_ERROR失败,请稍后再试";
    }
}
